package com.devchronicles.asynchronous;
import javax.annotation.PostConstruct;
import javax.ejb.Singleton;
import javax.ejb.Startup;
@Startup
@Singleton
public class TestLogging {
@EJB
MyLoggingBean logBean;
@PostConstruct
public void testLoggers(){
System.out.println("Wywoanie asynchroniczne");
logBean.logAsync("Rejestrowanie asynchroniczne");
System.out.println("Wywoanie synchroniczne");
logBean.logInfo("Rejestrowanie asynchroniczne");
System.out.println("Koniec");
}
}